package com.chexiehui.jc.base;

import com.chexiehui.jc.event.WeatherInfo;

import java.io.Serializable;
import java.util.List;

/**
 * @描述: 基本返回结果类
 * @作者: 宋俊 SongJun
 * @时间: 2016/10/11 15:48
 * @版权: 云腾科技
 * @官网: http://www.gzytkj.net/
 */
public class BaseModel<T> implements Serializable {

    private static final long serialVersionUID = 1L;

    private int ResultCode;
	private String ResultInfo;
	private String timespan;
	private T Data;

	private List<WeatherInfo> HeWeather5;

	public BaseModel() {
	}

	public BaseModel(int resultCode, String resultInfo) {
		ResultCode = resultCode;
		ResultInfo = resultInfo;
	}

	public BaseModel(int resultCode, String resultInfo, T data) {
		ResultCode = resultCode;
		ResultInfo = resultInfo;
		Data = data;
	}

	public int getResultCode() {
		return ResultCode;
	}

	public void setResultCode(int resultCode) {
		ResultCode = resultCode;
	}

	public String getResultInfo() {
		return ResultInfo;
	}

	public void setResultInfo(String resultInfo) {
		ResultInfo = resultInfo;
	}

	public String getTimespan() {
		return timespan;
	}

	public void setTimespan(String timespan) {
		this.timespan = timespan;
	}

	public T getData() {
		return Data;
	}

	public void setData(T data) {
		Data = data;
	}

	public List<WeatherInfo> getHeWeather5() {
		return HeWeather5;
	}

	public void setHeWeather5(List<WeatherInfo> heWeather5) {
		HeWeather5 = heWeather5;
	}
}
